var http = require('./httputils'); //相对路径
var httpFrom = require('./httpFrom'); //相对路径
var up = require("./uputils")
var up1 = require("./uputils1")
var config = require("./config")
const server = {
  //账号密码登录
  authenticate: function (params, onSuccess, onFailed) {
    http.postRequest(config.url + "/api/authenticate", params, onSuccess, onFailed)
  },
  //微信登录
  weChatLogin: function (params, onSuccess, onFailed) {
    httpFrom.postRequest(config.url + "/api/wechatLogin", params, onSuccess, onFailed)
  },
  //绑定微信信息
  wechatBindInfo: function (params, onSuccess, onFailed) {
    http.postRequest(config.url + "/api/wechatBindInfo", params, onSuccess, onFailed)
  },
  //绑定手机号
  wechatBindPhone: function (params, onSuccess, onFailed) {
    http.postRequest(config.url + "/api/wechatBindPhone", params, onSuccess, onFailed)
  },
  //设置昵称
  changeUsername: function (params, onSuccess, onFailed) {
    httpFrom.putRequest(config.url + "/api/user/changeUsername", params, onSuccess, onFailed)
  },
  //绑定个手机号
  weChatUpdatePhone: function (params, onSuccess, onFailed) {
    http.postRequest(config.url + "/user/weChatUpdatePhone", params, onSuccess, onFailed)
  },
  //获取岗位列表
  getJob: function (params, onSuccess, onFailed) {
    http.getRequest(config.url + "/api/job", params, onSuccess, onFailed)
  },
  //上传头像
  upavatar: function (params, onSuccess, onFailed) {
    up.upRequest(config.url + "/api/user/avatar", params, onSuccess, onFailed)
  },
  // 获取用户信息
  userInfo: function (params, onSuccess, onFailed) {
    http.getRequest(config.url + "/api/user", params, onSuccess, onFailed)
  },
  //实名认证
  realName: function (params, onSuccess, onFailed) {
    http.putRequest(config.url + "/api/user/realName", params, onSuccess, onFailed)
  },
  //绑定银行卡
  bankCard: function (params, onSuccess, onFailed) {
    httpFrom.putRequest(config.url + "/api/user/bankCard", params, onSuccess, onFailed)
  },
  //检索岗位
  jobsearch: function (params, onSuccess, onFailed) {
    http.getRequest(config.url + "/api/job/search", params, onSuccess, onFailed)
  },
  //获取附近的位置
  jobnearby: function (params, onSuccess, onFailed) {
    http.getRequest(config.url + "/api/job/nearby", params, onSuccess, onFailed)
  },
  //岗位详情
  getJobData: function (id, onSuccess, onFailed) {
    http.getRequest(config.url + "/api/job/" + id, {}, onSuccess, onFailed)
  },
  //收藏职位
  job_favorite: function (id, onSuccess, onFailed) {
    http.postRequest(config.url + "/api/user/job_favorite/" + id, {}, onSuccess, onFailed)
  },
  //取消收藏
  job_favoriteD: function (id, onSuccess, onFailed) {
    http.deleteRequest(config.url + "/api/user/job_favorite/" + id, {}, onSuccess, onFailed)
  },
  //岗位列表
  getjob_favorite: function (params, onSuccess, onFailed) {
    http.getRequest(config.url + "/api/user/job_favorite", params, onSuccess, onFailed)
  },
  //报名岗位
  registration: function (id, data, onSuccess, onFailed) {
    httpFrom.postRequest(config.url + "/api/job/registration/" + id, data, onSuccess, onFailed)
  },
  //取消报名
  registrationD: function (id, onSuccess, onFailed) {
    http.deleteRequest(config.url + "/api/job/registration/" + id, {}, onSuccess, onFailed)
  },
  //报名列表
  getregistration: function (params, onSuccess, onFailed) {
    http.getRequest(config.url + "/api/job/registration", params, onSuccess, onFailed)
  },

  getregistration1: function (params, onSuccess, onFailed) {
    http.getRequest(config.url + "/api/job/registration?"+params, {}, onSuccess, onFailed)
  },
  //录用列表
  gethire: function (params, onSuccess, onFailed) {
    http.getRequest(config.url + "/api/job/hire", params, onSuccess, onFailed)
  },
  //getmargin
  getmargin: function (params, onSuccess, onFailed) {
    http.getRequest(config.url + "/api/job/margin", params, onSuccess, onFailed)
  },
  //获取总收益
  getsalarySum: function (params, onSuccess, onFailed) {
    http.getRequest(config.url + "/api/job/salary/sum", params, onSuccess, onFailed)
  },
  //获取工作收益
  getworkList: function (params, onSuccess, onFailed) {
    http.getRequest(config.url + "/api/job/salary/work", params, onSuccess, onFailed)
  },
  // 获取推荐收益
  getinviteList: function (params, onSuccess, onFailed) {
    http.getRequest(config.url + "/api/job/salary/invite", params, onSuccess, onFailed)
  },
  //### 获取当前用户邀请记录
  getinvite: function (params, onSuccess, onFailed) {
    http.getRequest(config.url + "/api/user/invite", params, onSuccess, onFailed)
  },
  //获取验证码
  getVerificationCode: function (params, onSuccess, onFailed) {
    http.postRequest(config.url + "/user/getVerificationCode", params, onSuccess, onFailed)
  },
  //修改手机号
  updateTelphone: function (params, onSuccess, onFailed) {
    http.postRequest(config.url + "/user/updateTelphone", params, onSuccess, onFailed)
  },
  //提交建议反馈
  feedback: function (params, onSuccess, onFailed) {
    http.postRequest(config.url + "/feedback/feedback", params, onSuccess, onFailed)
  },
  //registrationId
  registrationId: function (id, onSuccess, onFailed) {
    http.postRequest(config.url + "/api/job/margin/" + id, {}, onSuccess, onFailed)
  },
  //联系入职
  entryInfo: function (id, onSuccess, onFailed) {
    http.getRequest(config.url + "/api/job/" + id + "/entryInfo", {}, onSuccess, onFailed)
  },
  //取消保证金
  marginIdD: function (id, onSuccess, onFailed) {
    http.deleteRequest(config.url + "/api/job/margin/" + id, {}, onSuccess, onFailed)
  },
  //打卡列表
  getclockInList: function (data, onSuccess, onFailed) {
    http.getRequest(config.url + "/api/clockIn/" + data.id, {}, onSuccess, onFailed)
  },
  // 根据日期检索
  getclockInList1: function (data, onSuccess, onFailed) {
    http.getRequest(config.url + "/api/clockIn/" + data.id + "/" + data.time, {}, onSuccess, onFailed)
  },
  //上传图片
  uploadFlie: function (params, onSuccess, onFailed) {
    up.upRequest(config.url + "/api/upload/file", params, onSuccess, onFailed)
  },
  //打卡
  clockIn: function (id, data, onSuccess, onFailed) {
    http.postRequest(config.url + "/api/clockIn/" + id, data, onSuccess, onFailed)
  },
  //提交工资确认
  confirmSy:function (data,id , onSuccess, onFailed){
    httpFrom.postRequest(config.url + "/api/job/salary/confirm/" + id, data, onSuccess, onFailed)
  },
  //打卡记录全部数据
  getclockInInfo: function (data, onSuccess, onFailed) {
    http.getRequest(config.url + "/api/clockIn", {}, onSuccess, onFailed)
  },
  //当前工作日期打卡记录
  queryMyClockInList: function (data, onSuccess, onFailed) {
    http.getRequest(config.url + `/api/clockIn/queryMyClockInList/${data.id}/${data.rulesType}`, {}, onSuccess, onFailed)
  },
  //离职 
  getclockInInfo: function (id, onSuccess, onFailed) {
    http.postRequest(config.url + "/api/job/registration/leave/" + id, {}, onSuccess, onFailed)
  },
  //获取轮播图
  getcarousel:function (id, onSuccess, onFailed) {
    // 1 企业  2  用工
    http.getRequest(config.url + "/api/carousel/2", {}, onSuccess, onFailed)
  },
   //获取全部岗位
   getAllJob:function (id, onSuccess, onFailed) {
    http.getRequest(config.url + "/api/job/posts", {}, onSuccess, onFailed)
  },
   //保存设置接单时间
   saveUserWant:function (params, onSuccess, onFailed) {
    http.putRequest(config.url + "/api/userWant/saveUserWant", params, onSuccess, onFailed)
  },
   //获取已设置的接单要求
   getUserWantInfo:function (id, onSuccess, onFailed) {
    http.getRequest(config.url + "/api/userWant/getUserWantInfo", {}, onSuccess, onFailed)
  },
  // 获取分享工作列表
    sharePost: function (type, onSuccess, onFailed) {
      http.getRequest(config.url + "/api/job/sharePost/" + type, {}, onSuccess, onFailed)
    },
  // 获取分享企业状态列表
    extend: function (type, onSuccess, onFailed) {
      http.getRequest(config.url + "/api/user/extend/" + type, {}, onSuccess, onFailed)
    },
  // 获取分享企业端二维码
    getShareCode: function (params, onSuccess, onFailed) {
      http.getRequest(config.getQyQrcodeUrl + "/api/qrcode/create", params, onSuccess, onFailed)
    },
    // 发送推送信息
    sendTs: function (type, onSuccess, onFailed) {
      http.getRequest(config.url + "/api/user/userSubInfo/"+type, onSuccess, onFailed)
    },
    // 报名推送给企业
     sendMsg: function (type, onSuccess, onFailed) {
       http.getRequest(config.getQyQrcodeUrl + "/api/user/sendMsg/" + type, {}, onSuccess, onFailed)
     },
    // 绑定支付宝账户
     bindAli: function (zh, onSuccess, onFailed) {
       http.getRequest(config.url + "/api/user/bindAliPayAcount/"+zh, {}, onSuccess, onFailed)
     },
    // 活动报名
    partTimeEnrolment: function (params, onSuccess, onFailed) {
       http.putRequest(config.url + "/api/user/partTimeEnrolment", params, onSuccess, onFailed)
     },
    // 提现列表
    getRecords: function (params, onSuccess, onFailed) {
       http.getRequest(config.url + "/api/aliPay/getRecords", params, onSuccess, onFailed)
     },
    
    // 兼职报名回显数据
    partTimeJobInfo: function (id, onSuccess, onFailed) {
       http.getRequest(config.url + "/api/user/partTimeJobInfo/"+id, {}, onSuccess, onFailed)
     },
    // 胶囊 活动
    capsule: function (id, onSuccess, onFailed) {
       http.getRequest(config.url + "/api/carousel/capsule/"+id, {},onSuccess, onFailed)
     },
    // 活动推广二维码
    createQrcode: function (params, onSuccess, onFailed) {
       http.getRequest(config.url + "/api/qrcode/createQrcode/"+params.id+'/'+params.event, {}, onSuccess, onFailed)
     },
    // 用户在线 下线
    updateOnline: function (params, onSuccess, onFailed) {
       http.postRequest(config.url + "api/updateOnline/"+params, onSuccess, onFailed)
    },
    echartsCostPerDay: function (time, onSuccess, onFailed) {
      http.getRequest(config.getQyQrcodeUrl + "/api/echartsCostPerDay/" + time, {}, onSuccess, onFailed)
    },
    // 获取行业列表
    getBusiness: function ({}, onSuccess, onFailed) {
      http.getRequest(config.url + "/api/job/getBusiness", {},onSuccess, onFailed)
    },
    listByType: function ({}, onSuccess, onFailed) {
      http.getRequest(config.url + "/api/job/listByType/1", {},onSuccess, onFailed)
    },
    eventInfo: function (id, onSuccess, onFailed) {
      http.getRequest(config.url + "/api/user/eventInfo/"+id, {},onSuccess, onFailed)
    },
    saveOrUpdate: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + "/api/welfare/saveOrUpdate", params,onSuccess, onFailed)
    },
    getGiftList: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/api/welfare/list/${params.page}/${params.pageSize}/${params.id}`, {},onSuccess, onFailed)
    },
    checkzige: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + "/api/welfare/checkQualification/"+params.unionid,params,onSuccess, onFailed)
    },
    lostSave: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + "/api/lost/save",params,onSuccess, onFailed)
    },
    lostList: function (params, onSuccess, onFailed) {
      http.getRequest(config.url + "/api/lost/list/1/1000",params,onSuccess, onFailed)
    },
    helpList: function (params, onSuccess, onFailed) {
      http.getRequest(config.url + "/api/help/listAssistance/1/9999",params,onSuccess, onFailed)
    },
    saveContactRecord: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + "/api/lost/saveContactRecord",params,onSuccess, onFailed)
    },
    saveAssistance: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + "/api/help/saveAssistance",params,onSuccess, onFailed)
    },
    losttotal: function ({}, onSuccess, onFailed) {
      http.getRequest(config.url + "/api/lost/total",{},onSuccess, onFailed)
    },
    helptotal: function ({}, onSuccess, onFailed) {
      http.getRequest(config.url + "/api/help/total",{},onSuccess, onFailed)
    },
    updateComplete: function (id, onSuccess, onFailed) {
      http.getRequest(config.url + "/api/help/updateComplete/"+id,{},onSuccess, onFailed)
    },
    // 生成小程序码
    createNewCode: function (params, onSuccess, onFailed) {
      http.getRequest(config.url + `/api/qrcode/createQrcode2`,params,onSuccess, onFailed)
    },
    // 查看援助信息
    assistanceInfo: function (id, onSuccess, onFailed) {
      http.getRequest(config.url + `/api/help/assistanceInfo/${id}`,{},onSuccess, onFailed)
    },
    // 查看援助详情 页 列表
    listVolunteer: function (params, onSuccess, onFailed) {
      http.getRequest(config.url + `/api/help/listVolunteer/${params.page}/${params.pageSize}/${params.type}/${params.id}`,{},onSuccess, onFailed)
    },
    // 援助报名
    saveVolunteer: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/api/help/saveVolunteer`,params,onSuccess, onFailed)
    },
    // 附近的  公益  工作 
    listNearby: function (params, onSuccess, onFailed) {
      http.getRequest(config.url + `/api/help/listNearby/${params.lng}/${params.lat}`,params,onSuccess, onFailed)
    },
    // 广场资讯列表
    newslist: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/api/news/list`,params,onSuccess, onFailed)
    },
    // 自己发布资讯列表
    newsmylist: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/api/news/mylist`,params,onSuccess, onFailed)
    },
    // 发布资讯
    newpub: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/api/news/save`,params,onSuccess, onFailed)
    },
    // 收藏资讯
    collect: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/api/news/collect/${params.id}`,{},onSuccess, onFailed)
    },
    // 收藏者头像列表
    collectList: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/api/news/collectList/${params.id}`,{},onSuccess, onFailed)
    },
    // 附近  详情 
    nearbyInfo: function (params, onSuccess, onFailed) {
      http.getRequest(config.url + `/api/help/nearbyInfo/${params.id}/${params.type}`,{},onSuccess, onFailed)
    },
    upDataFile: function (params, onSuccess, onFailed) {
      up.upRequest(config.url + "/api/upload/file", params, onSuccess, onFailed)
    },
    upDataFile1: function (params, onSuccess, onFailed) {
      up1.upRequest(config.url + "/api/upload/file", params, onSuccess, onFailed)
    },
    // 保存 工作 供需
    postExpressSave: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/api/postExpress/save`,params,onSuccess, onFailed)
    },
    // 列表 工作 供需
    postExpressList: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/api/postExpress/list`,params,onSuccess, onFailed)
    },
    // 详情 工作 
    postExpressInfo: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/api/postExpress/info/${params.id}`,{},onSuccess, onFailed)
    },
    // 发布数  完成数 工作 
    postExpressTotal: function ({}, onSuccess, onFailed) {
      http.postRequest(config.url + `/api/postExpress/totalNo`,{},onSuccess, onFailed)
    },
    // 报名列表 工作 
    postExpressBm: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/api/postExpress/collectList?id=${params.id}`,{},onSuccess, onFailed)
    },
    // 报名 工作 
    bmCollect: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/api/postExpress/collect/${params.id}`,{},onSuccess, onFailed)
    },
    // 取消报名 工作 
    qxCollect: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/api/postExpress/cancleCollect/${params.id}`,{},onSuccess, onFailed)
    },
    // 完成 工作 
    postExpressOver: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/api/postExpress/complete/${params.id}`,{},onSuccess, onFailed)
    },
    //  button 换取用户电话
    getUserPhone: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/api/getUserPhone`,params, onSuccess, onFailed)
    },
    // 微信提现
    getWxMoney: function (params, onSuccess, onFailed) {
      http.getRequest(config.url + `/api/wxPay/transferAccount/${params.money}/${params.openid}`,{}, onSuccess, onFailed)
    },
    // 提现
    getMoney: function (money, onSuccess, onFailed) {
      http.getRequest(config.url + "/api/aliPay/transferAccount/"+money, {}, onSuccess, onFailed)
    },
    // 查看用户画像
    userPortrait: function (params, onSuccess, onFailed) {
      http.getRequest(config.url + `/api/user-portrait/queryPortraitByUserId/${params.userId}`, {}, onSuccess, onFailed)
    },
    // 任务 列表
    thirdJobsList: function (params, onSuccess, onFailed) {
      http.getRequest(config.url + `/third/thirdJobs/${params.pageNo}/${params.pageSize}`, {}, onSuccess, onFailed)
    },
    // 任务 提交截图 
    saveRenwu: function (params, onSuccess, onFailed) {
      http.getRequest(config.url + `/third/save`, params, onSuccess, onFailed)
    },
    // 个人中心我的任务  列表
    myThirdJobs: function (params, onSuccess, onFailed) {
      http.getRequest(config.url + `/third/myThirdJobs/${params.pageNo}/${params.pageSize}`, {}, onSuccess, onFailed)
    },
    // 收益列表  任务收益
    getRenwuMoney: function (params, onSuccess, onFailed) {
      http.getRequest(config.url + `/api/job/salary/thirdJobSalary`, params, onSuccess, onFailed)
    },
    // 保存设备信息 
    shebei: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/login_location/save`, params, onSuccess, onFailed)
    },
    // 浏览记录
    jobview: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/page_view/save`, params, onSuccess, onFailed)
    },
    // 生成小程序码
    createQrcode4Job: function (params, onSuccess, onFailed) {
      http.getRequest(config.url + `/api/qrcode/createQrcode4Job`, params, onSuccess, onFailed)
    },
    // 岗位海报列表
    placardList: function (params, onSuccess, onFailed) {
      http.getRequest(config.url + `/placard/list/${params.id}/1/10`, params, onSuccess, onFailed)
    },
    // 人才库添加人才
    talentPoolSave: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/talentPool/save`, params, onSuccess, onFailed)
    },
    // 人才库当前队列  列表
    searchTalents: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/talentPool/searchTalents/${params.pageNo}/${params.pageSize}`, params, onSuccess, onFailed)
    },
    // 人才库当前队列  列表  更新
    talentPoolUpdate: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/talentPool/update`, params, onSuccess, onFailed)
    },
    // 清空 当前列表  
    clearTheBatch: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/talentPool/clearTheBatch`, params, onSuccess, onFailed)
    },
    // 根据身份证号查看是否重复  数据
    exists: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/talentPool/exists/${params.idcard}`, {}, onSuccess, onFailed)
    },
    // 导入人才库数据
  importRck: function (params, onSuccess, onFailed) {
    http.postRequest(config.url + `/talentPool/import/${params.path}`, {}, onSuccess, onFailed)
    },
    // 标签树结构
    queryTreeByType: function (params, onSuccess, onFailed) {
      http.getRequest(config.url + `/api/dict/queryTreeByType/${params.type}`, {}, onSuccess, onFailed)
    },
    // 保存能力值
    saveAbility: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/api/user-portrait/saveOrUpdate`, params, onSuccess, onFailed)
    },
    // 保存人才标签
    saveLabel: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/api/user-skill-label/save`, params, onSuccess, onFailed)
    },
    // 保存人才描述
    saveDescribe: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/talentPool/updateById`, params, onSuccess, onFailed)
    },
    // 获取人才描述
    getDescribe: function (params, onSuccess, onFailed) {
      http.getRequest(config.url + `/talentPool/getInfoById/${params.id}`, {}, onSuccess, onFailed)
    },
    // 获取标签
    getActiveLabel: function (params, onSuccess, onFailed) {
      http.getRequest(config.url + `/api/user-skill-label/queryUserSkillLabelId/${params.userId}`, {}, onSuccess, onFailed)
    },
    // 获取标签文本
    getLabelText: function (params, onSuccess, onFailed) {
      http.getRequest(config.url + `/api/user-skill-label/queryUserSkillLabelName/${params.userId}`, {}, onSuccess, onFailed)
    },
    // 获取人才沟通记录
    getCommunicationRecord: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/talentPool/getCommunicationRecord/${params.talentId}`, {}, onSuccess, onFailed)
    },
    // 获取人才浏览记录
    getBrowseRecord: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/talentPool/browseRecord/${params.talentId}/${params.pageNo}/${params.pagSize}`, {}, onSuccess, onFailed)
    },
    // 获取人才工作记录
    getWorkRecord: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/talentPool/listAppUserRecord/${params.talentId}/${params.pageNo}/${params.pagSize}`, {}, onSuccess, onFailed)
    },
    // 获取人才工作记录
    savemediaId: function (params, onSuccess, onFailed) {
      http.postRequest(config.url + `/api/media-manage-log/save`, params, onSuccess, onFailed)
    },
    // 获取打卡规则
	queryRulesInfo: function (params, onSuccess, onFailed) {
		http.getRequest(config.url + `/api/clock-in-rules/queryRulesInfo/`+params.jobId, {}, onSuccess, onFailed)
	},
	//打卡  最新  不需要到岗打卡
	clockInNew: function (id, data, onSuccess, onFailed) {
		http.postRequest(config.url + "/api/clockIn/new/" + id, data, onSuccess, onFailed);
	},
	//计量收益记录列表
	queryMySalaryPageList: function (data, onSuccess, onFailed) {
		http.getRequest(config.url + "/api/app-user-meter-work-salary/queryMySalaryPageList" , data, onSuccess, onFailed);
	},
	// 申诉 某一条计重
	appeal: function (data, onSuccess, onFailed) {
		http.postRequest(config.url + "/api/app-user-meter-work-salary/appeal", data, onSuccess, onFailed);
	},
	// 获取批量发薪
	queryMyList: function (data, onSuccess, onFailed) {
		http.getRequest(config.url + "/api/batch-salary/queryMyList", data, onSuccess, onFailed);
	},
	//保存银行卡号
	saveBankCard: function (data, onSuccess, onFailed) {
		http.postRequest(config.url + "/api/app-user-card/save", data, onSuccess, onFailed);
	},
	// 银行卡列表
	bacnkCardList: function (data, onSuccess, onFailed) {
		http.getRequest(config.url + "/api/app-user-card/list", data, onSuccess, onFailed);
	},
	// 修改默认银行卡
	defaultById: function (data, onSuccess, onFailed) {
		http.postRequest(config.url + "/api/app-user-card/defaultById/" + data.id, data, onSuccess, onFailed);
	},
	// 删除银行卡
	deleteById: function (data, onSuccess, onFailed) {
		http.postRequest(config.url + "/api/app-user-card/deleteById/" + data.id, data, onSuccess, onFailed);
	},
	// 获取发薪列表 上面累计金额
	getTotalSalary: function (data, onSuccess, onFailed) {
		http.getRequest(config.url + "/api/batch-salary/getTotalSalary", data, onSuccess, onFailed);
	},
	// 
	queryMyListByBank: function (data, onSuccess, onFailed) {
		http.getRequest(config.url + "/api/batch-salary/queryMyListByBank", data, onSuccess, onFailed);
  },
  payMargin: function (data, onSuccess, onFailed) {
		http.postRequest(config.url + "/api/wxPay/payMargin/"+data.jobId, data, onSuccess, onFailed);
  },
  checkRegistration: function (data, onSuccess, onFailed) {
		http.postRequest(config.url + "/api/job/registration/checkRegistration/"+data.jobId+`?lat=${data.lat}&lng=${data.lng}`, data,onSuccess, onFailed);
  },
  // 用户获取  缴纳的岗位保证金列表
  marginList: function (data, onSuccess, onFailed) {
		http.getRequest(config.url + "/api/job/margin/marginList", data, onSuccess, onFailed);
	},
}
module.exports = {
  http: server,
}